package com.qingyouchuxing.mall.biz.domain.dto;

import com.qingyouchuxing.mall.biz.domain.entity.MallGoods;
import com.qingyouchuxing.mall.biz.enums.MallGoodsStatus;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品上下架状态 DTO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = MallGoods.class, reverseConvertGenerate = false)
public class MallGoodsStatusDTO {
    /**
     * 主键
     */
    @NotNull
    private Long id;
    /**
     * 上下架状态(字典 0:下架  1:上架)
     */
    @NotNull
    private MallGoodsStatus status;
}
